{
  "properties" : { },
  "id" : "0f6371337af049a39ad2f0a83c51e6f4",
  "script" : null,
  "groupId" : "5e08b223a1574fc18b3818c72634a0ab",
  "name" : "修改告警联系人",
  "createTime" : 1727070925107,
  "updateTime" : 1724893738194,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "update",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"id\":8,\n    \"email\":\"11111.qq.com\",\n    \"phone\":\"17777799999\",\n    \"username\":\"ceshi222\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": 1\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================

return db.update("""
    update alarm_contact set email = #{body.email}, phone = #{body.phone},username = #{body.username}
    where id = #{body.id}
""")